.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .loading-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  
  .loading-content {
    position: relative;
    z-index: 1;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 40px 35px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    max-width: 320px;
    width: 90%;
  }
  
  /* 加载动画 */
  .loading-spinner {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
  }
  
  .spinner-ring {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    padding: 8px;
  }
  
  .ring-segment {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid transparent;
  }
  
  .ring-segment:nth-child(1) {
    border-top: 4px solid;
    border-image: linear-gradient(45deg, #667eea, #764ba2) 1;
    animation: spin 2s linear infinite;
  }
  
  .ring-segment:nth-child(2) {
    border-right: 4px solid;
    border-image: linear-gradient(135deg, #764ba2, #667eea) 1;
    animation: spin 2s linear infinite reverse;
    animation-delay: -0.5s;
  }
  
  .ring-segment:nth-child(3) {
    border-bottom: 4px solid;
    border-image: linear-gradient(225deg, #667eea, #764ba2) 1;
    animation: spin 2s linear infinite;
    animation-delay: -1s;
  }
  
  .ring-segment:nth-child(4) {
    border-left: 4px solid;
    border-image: linear-gradient(315deg, #764ba2, #667eea) 1;
    animation: spin 2s linear infinite reverse;
    animation-delay: -1.5s;
  }
  
  .spinner-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    animation: pulse 2s ease-in-out infinite;
  }
  
  .center-logo {
    font-size: 24px;
    color: white;
    animation: float 3s ease-in-out infinite;
  }
  
  /* 加载文字 */
  .loading-text {
    margin-bottom: 25px;
  }
  
  .loading-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .loading-message {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
  }
  
  /* 点动画 */
  .loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
  }
  
  .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    transition: all 0.3s ease;
  }
  
  .dot.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    transform: scale(1.3);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
  }
  
  /* 动画定义 */
  @keyframes spin {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }
  
  @keyframes pulse {
    0%, 100% {
      transform: translate(-50%, -50%) scale(1);
      box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    }
    50% {
      transform: translate(-50%, -50%) scale(1.05);
      box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
    }
  }
  
  @keyframes float {
    0%, 100% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-5px);
    }
  }
  
  /* 移动端适配 */
  @media (max-width: 768px) {
    .loading-content {
      padding: 30px 25px;
      max-width: 280px;
    }
    
    .loading-spinner {
      width: 100px;
      height: 100px;
      margin-bottom: 25px;
    }
    
    .spinner-center {
      width: 50px;
      height: 50px;
    }
    
    .center-logo {
      font-size: 20px;
    }
    
    .loading-title {
      font-size: 16px;
    }
    
    .loading-message {
      font-size: 13px;
    }
  }
  
  @media (max-width: 480px) {
    .loading-content {
      padding: 25px 20px;
      max-width: 260px;
    }
    
    .loading-spinner {
      width: 80px;
      height: 80px;
      margin-bottom: 20px;
    }
    
    .spinner-center {
      width: 40px;
      height: 40px;
    }
    
    .center-logo {
      font-size: 16px;
    }
    
    .loading-title {
      font-size: 15px;
    }
    
    .loading-message {
      font-size: 12px;
    }
    
    .dot {
      width: 6px;
      height: 6px;
    }
  }